package com.joysuch.wwyt.mh.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.joysuch.wwyt.core.exception.ApiBusinessException;
import com.joysuch.wwyt.mh.dto.CustomizeMonitorTypeSelectDto;
import com.joysuch.wwyt.mh.bean.vo.CustomizeMonitorTypeVO;
import com.joysuch.wwyt.mh.entity.CustomizeMonitorType;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jingwk
 * @since 2021-07-05
 */
public interface CustomizeMonitorTypeService extends IService<CustomizeMonitorType> {

    /**
     * 分页获取监测点类型列表
     * @param page
     * @param size
     * @return
     */
    IPage<CustomizeMonitorTypeVO> findTypeInfoListPaging(int page, int size);

    /**
     * 分页获取监测点类型列表
     * @param pageNo
     * @param size
     * @return
     */
    IPage<CustomizeMonitorType> findListPaging(int pageNo, int size);

    /**
     * 获取所有监测点类型
     * @return
     */
    List<CustomizeMonitorTypeSelectDto> allType();

    /**
     * 保存监测点类型
     * @param customizeMonitoringType
     * @return
     * @throws ApiBusinessException
     */
    boolean saveMonitorType(CustomizeMonitorType customizeMonitoringType) throws ApiBusinessException;

    /**
     * 删除监测点类型
     * @param typeId
     * @return
     */
    boolean deleteById(Long typeId);
}
